package com.testpro.scala.learn.packagejava;


import com.testpro.scala.learn.packagescala.China;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * Java调用Scala代码示例
 *
 * @author Administrator testdevops @Date 2019-10-17 15:55
 */
public class JavaMainCallScalaCode {

    private static final Logger log = LoggerFactory.getLogger( JavaMainCallScalaCode.class );

    //  java 调用Scala 代码

    public static void main(String[] args) {

        China china = new China();
        china.SayHello( "JavaMainCallScalaCode-------" );

    }


    /**
     * 讲打印单词的方法
     *
     * @param sayWord 说些什么？
     */
    public static void sayWord(String sayWord) {
        log.info( sayWord );
        for (int i = 0; i < 100; i++) {
            System.out.println( sayWord + i );
        }

    }

}
